<?php

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Mmenu extends CI_Model {
	function __construct() {
		parent::__construct();
	}


	public function menu($parent)
	{
		$this->db->select('*');
		$this->db->from('ms_menu');
		$this->db->where('parent',$parent);
		$this->db->order_by('rel','ASC');
		$query = $this->db->get();
		$hasil =$query->result();
		
		return $hasil;
	}
	

}
?>